package com.mycompany.myapp.service;

import com.mycompany.myapp.service.dto.AdvertisingDTO;
import com.mycompany.myapp.web.rest.utils.ResultObj;

import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing {@link com.mycompany.myapp.domain.Advertising}.
 */
public interface AdvertisingService {

    /**
     * Save a advertising.
     *
     * @param advertisingDTO the entity to save.
     * @return the persisted entity.
     */
    AdvertisingDTO save(AdvertisingDTO advertisingDTO);

    /**
     * Get all the advertisings.
     *
     * @return the list of entities.
     */
    List<AdvertisingDTO> findAll();


    /**
     * Get the "id" advertising.
     *
     * @param id the id of the entity.
     * @return the entity.
     */
    Optional<AdvertisingDTO> findOne(Long id);

    /**
     * Delete the "id" advertising.
     *
     * @param id the id of the entity.
     */
    void delete(Long id);

    ResultObj updateAdvertising(AdvertisingDTO advertisingDTO);

    ResultObj createAdvertising(AdvertisingDTO advertisingDTO);
}
